<?php
include_once '../../web_inc.php';
//include_once './check_login.php';    //权限验证文件，正式环境下必须开启！！！
include_once ROOT_PATH.'/config/db_conn.php';
include_once 'inc/gy_info_class.php';

$id=$_GET[id];


$info=new getInfo_gy();
$sql=$info->getinfo_detail($id);
$cont=$info->class_fetch($sql);



?>

<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<title>修改信息</title>
	<link rel="stylesheet" href="../../form/jqtransformplugin/jqtransform.css" type="text/css" media="all" />
	<script type="text/javascript" src="../../form/requiered/jquery.js" ></script>
	<script type="text/javascript" src="../../form/jqtransformplugin/jquery.jqtransform.js" ></script>
	<script type="text/javascript" src="../../form/j.js" ></script>

	<link rel="stylesheet" href="../../editor/themes/default/default.css" />
	<link rel="stylesheet" href="../../editor/plugins/code/prettify.css" />
	<script charset="utf-8" src="../../editor/kindeditor.js"></script>
	<script charset="utf-8" src="../../editor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="../../editor/plugins/code/prettify.js"></script>
	<script charset="utf-8" src="../../editor/text.js"></script>
</head>
<form name='form1' id='myupload' action='update.php?action=gy&id=<?php echo $id;?>' method="post" enctype='multipart/form-data'>
<table border="0" width="600px" id="table1" align=center>
		<tr>
			<td>信息标题：</td>
			<td><input type="text" name="title" size="20" value="<?php echo $cont[title];?>"></td>
		</tr>
		<tr>
			<td>新旧程度：</td>
			<td>
	         	<table border="0" width="480px" id="table1" align=left>
	              <tr>
		             <td><input type="radio" <?php if($cont[xj]=='全新') echo "checked"; ?> name="xj" value="全新">全新</td>
		             <td><input type="radio" <?php if($cont[xj]=='九成新') echo "checked"; ?> name="xj" value="九成新">九成新</td>
					 <td><input type="radio" <?php if($cont[xj]=='八成新') echo "checked"; ?> name="xj" value="八成新">八成新</td>
					 <td><input type="radio" <?php if($cont[xj]=='七成新') echo "checked"; ?> name="xj" value="七成新">七成新</td>
					 <td><input type="radio" <?php if($cont[xj]=='七成新以下') echo "checked"; ?> name="xj" value="七成新以下">七成新以下</td>
	              </tr>
              </table>
			</td>
		</tr>
		<tr>
			<td>价&nbsp;&nbsp;&nbsp; 格：</td>
			<td><input type="text" name="price" size="20" value="<?php echo $cont[price];?>"></td>
		</tr>

		
		<tr>
			<td valign=top>详细说明：</td>
			<td><textarea name="content1" style="width:500px;height:200px;visibility:hidden;"><?php echo $cont[content];?></textarea></td>
		</tr>
		<tr>
			<td>　</td>
			<td>　</td>
		</tr>

		<tr>
			<td>QQ:</td>
			<td><input type="text" name="qq" size="20" value="<?php echo $cont[qq];?>"></td>
		</tr>
		<tr>
			<td>手&nbsp;&nbsp;&nbsp; 机：</td>
			<td><input type="text" name="tel" size="20" value="<?php echo $cont[tel];?>"></td>
		</tr>
		<tr>
			<td>　</td>
			<td>　</td>
		</tr>
		<tr>
			<td colspan="2" align="center"><input type="submit" value="提交" name="B1"></td>
		</tr>
	</table>
</form>
<body>


</body>
<html>